#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
int main()
{
	int n = 0;
	double d = 0;
	scanf("%d %lf", &n, &d);
	double ret = d * pow(2, n);
	if (ret - (int)ret >= 0.5)
	{
		ret++;
	}
	printf("%d", (int)ret);
	return 0;
}